﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/SystemManage/SysProgramLog/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
		var submitUrl = "Insert";
        if (!!keyValue) {
            submitUrl = "Update";
        }
        $.submitForm({
            url: "/SystemManage/SysProgramLog/"+submitUrl+"?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        });
		return false;
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;" class="container">
        <div class="form"> 
            <br />
            <div class="input-group">
                <span class="input-group-addon">错误描述</span>
                <div class="Value">
                    <textarea id="Message" name="Message" type="text" class="form-control required" placeholder=""  style="height: 400px;"></textarea>
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">错误</span>
                <div class="Value">
                    <textarea id="Exception" name="Exception" type="text" class="form-control required" placeholder="" style="height: 100px;"></textarea>
                </div>
            </div>
            <br />

        </div>
    </div>
</form>







